#ifndef FRAMECORRECT_H
#define FRAMECORRECT_H

#include <QWidget>
#include "src/DataProvider/Calc/CalcProvider.h"
#include "src/DataProvider/Image/imgprovider.h"
#include "DebugPulic.h"
#include "src/SoftWare/SQL/SQLHelper.h"
#include <regex>
#include <QDebug>


namespace Ui {
class FrameCorrect;
}

class FrameCorrect : public QWidget
{
    Q_OBJECT

public:
    explicit FrameCorrect(QWidget *parent = 0);
    ~FrameCorrect();
    /**
     * @brief transAndReplace
     * @param 龙骨的真实相机中心点，TCP类型必须是CAMERA
     * @warning 把相机中心点转换为base下的RobotPos，然后再转换为Tool坐标系下的点，写入到表中
     */
    void transAndReplace(RobotPos );
    int  updateIndex(std::string);
    /**
     * @brief appendStr
     * @details 推送消息到文本缓冲区
     */
    void appendStr(QString);

private slots:
    void on_pb_opendir_clicked();

    void on_pb_run_clicked();

    void on_pb_self_clicked();

    void on_pb_write_clicked();

    void on_pb_gen_clicked();

private:
    RobotPos  the_mis;      /* 纠正的偏差值 */
    RobotPos _curReal;      /* 当前修正过的pos */
    DBIndex _curIndex;
    Ui::FrameCorrect *ui;
    std::shared_ptr<DebugToolData> _D_data; // 调试界面的共享数据指针
};

#endif // FRAMECORRECT_H
